package com.zhwmall.product.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zhwmall.common.entity.product.AttrEntity;
import com.zhwmall.common.entity.product.AttrGroupEntity;
import com.zhwmall.common.vo.AttrGroupWithAttrVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author zhw
 * @email sqzhou@88.com
 * @date 2020-08-18 16:52:35
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    IPage<AttrGroupEntity> pageList(Map<String, Object> params, long catId);

    Long[] findParent(Long catelogId);

    List<AttrEntity> getRelationAttr(Long attrgroupId);

    IPage<AttrEntity> getNoRelationAttr(Map<String, Object> params, Long attrgroupId);

    List<AttrGroupWithAttrVo> getAttrGroupWithAttrByCatelogId(Long catelogId);
}

